package blue.blog.core.model;

import java.time.LocalDateTime;
import java.util.List;

import com.blue.jdbc.annotation.Id;
import com.blue.jdbc.annotation.Table;
import com.blue.jdbc.annotation.Transient;

@Table(name = "cms_doc")
public class CmsDoc
{
	@Id
	private Integer id;
	private Integer channelId;
	private String title;
	private String cover;
	private LocalDateTime createTime;
	private Integer state;
	private Integer views;
	private Integer files;
	private Integer fileSize;
	private String url;

	@Transient
	private List<CmsDocFile> fileList;
	@Transient
	private String summary;
	@Transient
	private String content;

	public CmsDoc()
	{
	}

	public Integer getId()
	{
		return id;
	}

	public void setId(Integer id)
	{
		this.id = id;
	}

	public Integer getChannelId()
	{
		return channelId;
	}

	public void setChannelId(Integer channelId)
	{
		this.channelId = channelId;
	}

	public String getTitle()
	{
		return title;
	}

	public void setTitle(String title)
	{
		this.title = title;
	}

	public String getCover()
	{
		return cover;
	}

	public void setCover(String cover)
	{
		this.cover = cover;
	}

	public LocalDateTime getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime)
	{
		this.createTime = createTime;
	}

	public Integer getState()
	{
		return state;
	}

	public void setState(Integer state)
	{
		this.state = state;
	}

	public Integer getViews()
	{
		return views;
	}

	public void setViews(Integer views)
	{
		this.views = views;
	}

	public Integer getFiles()
	{
		return files;
	}

	public void setFiles(Integer files)
	{
		this.files = files;
	}

	public Integer getFileSize()
	{
		return fileSize;
	}

	public void setFileSize(Integer fileSize)
	{
		this.fileSize = fileSize;
	}

	public String getUrl()
	{
		return url;
	}

	public void setUrl(String url)
	{
		this.url = url;
	}

	public List<CmsDocFile> getFileList()
	{
		return fileList;
	}

	public void setFileList(List<CmsDocFile> fileList)
	{
		this.fileList = fileList;
	}

	public String getSummary()
	{
		return summary;
	}

	public void setSummary(String summary)
	{
		this.summary = summary;
	}

	public String getContent()
	{
		return content;
	}

	public void setContent(String content)
	{
		this.content = content;
	}

}
